package com.heima.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.article.dtos.ArticleHomeDto;
import com.heima.model.article.pojos.ApArticle;
import org.apache.commons.net.nntp.Article;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author xiaoxiaode
 * @date 2021/9/25 19:16
 **/
@Mapper
public interface ArticleMapper extends BaseMapper<ApArticle> {

    /*
    * dto:最大时间/最小时间/分页/频道
    * type:1:加载更多  2:加载最新
    *
    * */
    List<Article> loadArticleList(@Param("dto") ArticleHomeDto dto, @Param("type") Short type);
}
